﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace ProblemStatement.Model
{
    public class ThousandsOfElementsInUIModel : BusinessModelBase
    {
        public ObservableCollection<SmallItemModel> SmallItems { get; set; }

        public ThousandsOfElementsInUIModel()
        {
            SmallItems = new ObservableCollection<SmallItemModel>();
        }

        public void CreateSmallItems()
        {
            for(int i = 0; i< 10000; i++)
            {
                SmallItems.Add(new SmallItemModel());
            }
        }
    }
}
